#define _CRT_SECURE_NO_WARNINGS
#include"BinaryTree.h"

void test()
{
	BTNode* tree = CreatBinaryTree();
	//BinaryTreePrevOrder(tree);
	BinaryTreePostOrder(tree);
	printf("\n");
	//BinaryTreeInOrder(tree);
	printf("tree size: %d \n", BinaryTreeSize(tree));
	printf("treeleaf size: %d \n", BinaryTreeLeafSize(tree));
	BTNode*temp= BinaryTreeFind(tree, 5);
	temp->_data = 15;
	BinaryTreePostOrder(tree);
	printf("\n");
	printf("k size %d \n", BinaryTreeLevelKSize(tree, 3));
	BinaryTreeLevelOrder(tree);
	printf("%d ", BinaryTreeComplete(tree));

}


int main()
{
	test();
	return 0;
}